import { baseUrl, doRequestPost, doRequestGet } from '../utils/request'
//我的专题
export function getPageList(query) {
  return doRequestPost(baseUrl + 'seminarInfo/pageList' + '?time=' + (+new Date()), query)
}

export function getEdit(query) {
  return doRequestPost(baseUrl + 'seminarInfo/selectById' + '?time=' + (+new Date()), query)
}

export function addInfo(query) {
  return doRequestPost(baseUrl + 'seminarInfo/addInfo' + '?time=' + (+new Date()), query)
}

export function publish(query) {
  return doRequestPost(baseUrl + 'seminarInfo/publish' + '?time=' + (+new Date()), query)
}

export function backMethod(query) {
  return doRequestPost(baseUrl + 'seminarInfo/adjustDesc' + '?time=' + (+new Date()), query)
}

export function passMethod(query) {
  return doRequestPost(baseUrl + 'seminarInfo/pass' + '?time=' + (+new Date()), query)
}

export function downMethod(query) {
  return doRequestPost(baseUrl + 'seminarInfo/updateStatus' + '?time=' + (+new Date()), query)
}

export function getPageListAll(query) {
  return doRequestPost(baseUrl + 'seminarInfo/pageListAll' + '?time=' + (+new Date()), query)
}

export const originalUploadUrl = baseUrl + 'file/oss/seminar/upload'